﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BYFW.WebBase
{
    public class BaseMasterPage : System.Web.UI.MasterPage
    {
        /// <summary>
        /// web应用程序的根url，不包含"/";
        /// </summary>
        protected string BU
        {
            get { return this.BP.BU; }
        }
        /// <summary>
        /// 控件所在页面的自定义Page基类
        /// </summary>
        protected BasePage BP
        {
            get
            {
                if (this.Page is BasePage)
                    return (BasePage)this.Page;
                else
                    return null;
            }
        }
    }
}
